import type * as Football from "./type"
import { request } from "@/http/axios"

/** 获得时间区间内的比赛 */
export function getMatchesApi(data: Football.RequestData) {
  return request<Football.MatchesResponseData>({
    url: "football/getMatches",
    method: "post",
    data
  })
}
/** 获得比赛的信号值 */

export function getMatcheSignalApi(data: Football.SignalCondition) {
  return request<Football.SignalResponseData>({
    url: "football/Signal",
    method: "post",
    data
  })
}

/** 获取赛事列表 */
export function getEventListApi() {
  return request<Football.EventListResponseData>({
    url: "football/getEventList",
    method: "get"
  })
}

/** 根据赔率和信号范围获取相似比赛 */
export function getSimilarMatchesApi(data: Football.SimilarMatchesCondition) {
  return request<Football.SimilarMatchesResponseData>({
    url: "football/getSimilarMatches",
    method: "post",
    data
  })
}
